
KDIR := /lib/modules/$(shell uname -r)/build/

all: modules tester daemon
	
modules:
	$(MAKE) -C $(KDIR) M=$(shell pwd) modules

clean: 
	$(MAKE) -C $(KDIR) M=$(shell pwd) clean
	-rm Module.markers
	-rm modules.order
	rm tester
	rm daemon

daemon:
	gcc -lnl -o daemon daemon.c fileops.c
